var express = require('express');
var router = express.Router();

const { 
  createComment,
  getComment,
  getCharacterComments,
  updateComment,
  deleteComment 
} = require('../controllers/character_comment');

router.post('/', createComment);

router.get('/:id', getComment);

router.get('/character/:id', getCharacterComments);

router.put('/:id', updateComment);

router.delete('/:id', deleteComment);

module.exports = router;